<?php

if(!(isset($_SESSION))) session_start();

require_once("./extras/database.php");
require_once("./extras/mysql.php");

$emaileliminar = $_POST['emaileliminar'];
$idevent = $_POST['idevent'];

//print $emaileliminar." - ".$idevent;

$operacions = new MySQL_Driver();
$operacions->query = "DELETE FROM invitats WHERE idevent = ".$idevent." AND mailuser = '".$emaileliminar."'";
$operacions->execute_single_query();

print $operacions->query;

?>